﻿using System.ComponentModel.DataAnnotations;

namespace Modules.System.Attachment
{
    /// <summary>
    /// 附件租户类型
    /// </summary>
    public enum AttachmentTenantType
    {
        /// <summary>
        /// 企业
        /// </summary>
        Corp = 1,

        /// <summary>
        /// 人员
        /// </summary>
        Person = 2,

        /// <summary>
        /// 项目
        /// </summary>
        Project = 3,

        /// <summary>
        /// 项目参与企业
        /// </summary>
        ProjectCorp = 4
    }

    /// <summary>
    /// 附件媒体类型
    /// </summary>
    public enum MediaType
    {
        /// <summary>
        /// 图片
        /// </summary>
        [Display(Name = "图片")]
        Image = 1,

        /// <summary>
        /// 视频
        /// </summary>
        [Display(Name = "视频")]
        Video = 2,

        /// <summary>
        /// Flash
        /// </summary>
        [Display(Name = "Flash")]
        Flash = 3,

        /// <summary>
        /// 音乐
        /// </summary>
        [Display(Name = "音乐")]
        Audio = 4,

        /// <summary>
        /// 文档
        /// </summary>
        [Display(Name = "文档")]
        Document = 5,

        /// <summary>
        /// 压缩包
        /// </summary>
        [Display(Name = "压缩包")]
        Compressed = 6,

        /// <summary>
        /// 其他类型
        /// </summary>
        [Display(Name = "其他类型")]
        Other = 99
    }

    /// <summary>
    /// 附件预览类型
    /// </summary>
    public enum AttachmentPreviewTypes
    {
        [Display(Name = "不可预览")]
        None = 0,

        [Display(Name = "图片")]
        Image = 1,

        [Display(Name = "PDF")]
        PDF = 2
    }

    /// <summary>
    /// 文档转换状态
    /// </summary>
    public enum ConvertStatus
    {
        /// <summary>
        /// 等待转换
        /// </summary>
        [Display(Name = "等待转换")]
        Waiting = 0,

        /// <summary>
        /// 转换中
        /// </summary>
        [Display(Name = "转换中")]
        Converting = 1,

        /// <summary>
        /// 已转换
        /// </summary>
        [Display(Name = "已转换")]
        Complete = 2,

        /// <summary>
        /// 转换失败
        /// </summary>
        [Display(Name = "转换失败")]
        Fail = 10,

        /// <summary>
        /// 不可转换
        /// </summary>
        [Display(Name = "不可转换")]
        Other = 254,

        /// <summary>
        /// 全部
        /// </summary>
        [Display(Name = "全部")]
        All = 255,
    }
}